package com.zbkj.crmeb.chant.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商户批采单表
 * </p>
 *
 * @author wuzp
 * @since 2022-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("eb_channel_picking")
@ApiModel(value="ChannelPicking对象", description="商户批采单表")
public class ChannelPicking extends Model<ChannelPicking> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "批采单名称")
    private String name;

    @ApiModelProperty(value = "结单时间")
    private Date statementTime;

    @ApiModelProperty(value = "收货方式：1.大陆批采 2.港澳批采")
    private Integer receiptType;

    @ApiModelProperty(value = "起订方式：1：金额 2： 件数")
    private Integer minimumType;

    @ApiModelProperty(value = "起订金额/件数")
    private BigDecimal minimumPrice;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    @ApiModelProperty(value = "是否启用")
    private Integer status;

    @ApiModelProperty(value = "商户id")
    private Integer merId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
